|
2020-2021 Sunseeker Telemetry and Lighting System
|
#include "driverlib.h"Go to the source code of this file.
Macros | |
| #define | DUTY_CYCLE1 20 |
| #define | TIMER_PERIOD 40 |
Functions | |
| void | main (void) |
| void | TIMER0_A1_ISR (void) |
| #define DUTY_CYCLE1 20 |
PMM @ Core 0, SVSL/SVSH optimized for fast wake up
Description: The PMM is at default core level 0. The SVS high side (Vcc) is configured for Fast Performance mode. The SVS low side (Vcore) is disabled. Specs: Wake up from interrupt: 5us* (as SVSL disabled) Response to SVS event(propogation delay): 2us* (as SVSH enabled in LPM) Current consumption by SVS: 2uA* (as SVSH enabled in Fast Performance Mode) !Note: Refer to the device D/s for actual values
The timer outputs a PWM with a frequency ~800Hz. The LED at P1.0 is toggled on entry into the ISR. The time difference between PWM event and LED toggle =SVS wakeup time + interrupt latency + LED turn on = ~20+us.
NOTE: TERMINATE THE DEBUG SESSION BEFORE TESTING THIS EXAMPLE Refer section 2.2.8.1 for debug impact on SVS
ACLK = REFO = TACLK = ~32KHz, MCLK = SMCLK = default DCO ~1.045MHz//!
MSP430F54xA ---------------
| / | | |
|---|---|
| – | RST |
| TA0.4 | --> output from timer |
| P1.0 | --> LED |
This example uses the following peripherals and I/O signals. You must review these and change as needed for your own board:
This example uses the following interrupt handlers. To use this example in your own application you must add these interrupt handlers to your vector table.
Definition at line 74 of file pmm_ex2_fastWakeUp.c.
| #define TIMER_PERIOD 40 |
Definition at line 75 of file pmm_ex2_fastWakeUp.c.
| void main | ( | void | ) |
Definition at line 77 of file pmm_ex2_fastWakeUp.c.
References __no_operation(), DUTY_CYCLE1, GPIO_setOutputLowOnPin(), and TIMER_PERIOD.
| void TIMER0_A1_ISR | ( | void | ) |
Definition at line 186 of file pmm_ex2_fastWakeUp.c.